<%@page import="bean.B01boardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="./css/B01board.css">
<script src = './js/B01board.js'></script>
</head>
<body>
<jsp:useBean id="vo" class = "bean.B01boardVO" scope="page"/>
<jsp:setProperty property="*" name="vo"/>
<script type="text/javascript">alert(vo.getB_image())</script>
<form action="" name="hiddenFrm" method="post">
	<input type="hidden" name="nowPage" value="<%=vo.getNowPage()%>">
	<input type="hidden" name="find" value="<%=vo.getFind()%>">
	<input type="hidden" name='b_image' value='<%=vo.getB_image()%>'/>
	<input type='hidden' name='b_number' value="<%=vo.getB_number()%>"/>
</form>
	<h1>글 삭제 결과  </h1> 
<hr>
<%
B01boardDTO dto = new B01boardDTO();
dto.setVo(vo);
if(dto.delete()){
	out.print("<h4>정상적으로 삭제되었습니다.</h4>");
}else{
	out.print("<h4>삭제 중 오류가 발생했습니다.</h4>");
}
%>
<br>
<hr>
	<input type ="button" 	value="목록으로" 	id="btnList">
</body>
	<script>deleteInit();</script>
</html>